
import React, { Component } from 'react';
import {Input , Button} from 'antd'
import 'whatwg-fetch'
import 'es6-promise'



class RegisterEidt extends Component{
  state={
    classify:"",
    title:""
  }
  componentDidMount(){
    let UE = window.UE;
    UE.getEditor('container', {
      autoHeightEnabled: true,
      autoFloatEnabled: true
    });
  }
  rua(){
    let UE = window.UE;
    let inputTitle = this.refs['title']
    console.log(this.state.classify)
    console.log(inputTitle.input.value)
    console.log(UE.getEditor('container').getContentTxt())
  }
  back(){
    console.log('返回上一个页面')
    window.history.back();
  }
  render() {
    
    return (
      <div className="App">
        <p style={{textAlign:"left"}}>姓名</p>
        <Input placeholder="Basic usage" size="large" id="ruarua" ref="title"></Input>
        <p style={{textAlign:"left"}}>性别</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <p style={{textAlign:"left"}}>技术职称</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <p style={{textAlign:"left"}}>专业</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <p style={{textAlign:"left"}}>居住地</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <p style={{textAlign:"left"}}>职业分类</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <p style={{textAlign:"left"}}>外语</p>
        <Input placeholder="Basic usage" size="large"></Input>
        <Button onClick={this.back} style={{marginTop:'36px',float:"right",background:"#004894",color:"#fff",height:"45px",width:"120px",fontSize:"17px"}} icon='backward'>返回</Button>
        <Button onClick={this.rua.bind(this)} style={{marginTop:'36px',float:"right",marginRight:"36px",background:"#E50012",color:"#fff",height:"45px",width:"120px",fontSize:"17px"}} icon="upload">发布</Button>
      </div>
    );
  }
}

export default RegisterEidt;